
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.modal {
  background-color: var(--modal-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  animation: slideUp 0.3s ease-out forwards;
}

/* Theme variables */
[data-theme='dark'] {
  --modal-bg: #2d2d2d;
  --text-color: #e5e5e5;
  --text-secondary: #a1a1aa;
  --border-color: #404040;
}

[data-theme='light'] {
  --modal-bg: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-color: #eeeeee;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.closeButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.closeButton:hover {
  color: var(--text-color);
}

.content {
  padding: 1rem 0;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}